package org.wzy.springcloud.feign.config;

import feign.Feign;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.wzy.springcloud.feign.decoder.BizErrorDecoder;


/**
 * {@link Feign} 配置类
 *
 * @author wzy_h
 * @version 1.0
 * @date 23:30 2017/11/24
 * @description
 */
@Configuration
@Import(BizErrorDecoder.class)
public class FeignConfig {

    @Bean
    public Logger.Level configFeignLoggingLevel() {
        return Logger.Level.FULL;
    }
}
